package com.ymm.system.api.utils;

/**
 * @auther ZhangHongyuan
 * @date 2022/8/16 9:35
 */

public enum OrderCancelTypeCodeEnum {
    /**
     * 订单没有被取消
     */
    ORDER_NOT_CANCEL(0, "订单没有被取消"),
    /**
     * 货主更换司机，未下架货源。
     */
    SHIPPER_CHANGE_DRIVER(1, "更换司机，未下架货源"),
    /**
     * 货主取消订单但不下架货源
     */
    SHIPPER_CANCEL_ORDER_NOT_PULL_OFF_CARGO(2, "货主取消订单但不下架货源"),
    /**
     * 货主取消订单且下架货源
     */
    SHIPPER_CANCEL_ORDER_PULL_OFF_CARGO(3, "货主取消订单且下架货源"),
    /**
     * 司机取消订单但不下架货源
     */
    DRIVER_CANCEL_ORDER_NOT_PULL_OFF_CARGO(4, "司机取消订单但不下架货源"),
    /**
     * 司机取消订单且下架货源
     */
    DRIVER_CANCEL_ORDER_PULL_OFF_CARGO(5, "司机取消订单且下架货源");


    private Integer code;
    private String message;

    OrderCancelTypeCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return "OrderStatusEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
